/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.dailyPoem.service;

import me.zhengjie.dailyPoem.domain.DailyPoemDiscussion;
import me.zhengjie.dailyPoem.domain.vo.DailyPoemDiscussionQueryCriteria;

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.utils.PageResult;

/**
* @description 服务接口
* @author yellow
* @date 2025-04-21
**/
/**
 * 每日一诗讨论帖服务接口（使用 DTO 进行数据传输）
 */
public interface DailyPoemDiscussionService {

    PageResult<DailyPoemDiscussion> queryAll(DailyPoemDiscussionQueryCriteria criteria, Page<Object> page);

    List<DailyPoemDiscussion> queryAll(DailyPoemDiscussionQueryCriteria criteria);

    Integer create(DailyPoemDiscussion resources);

    void update(DailyPoemDiscussion resources);

    void deleteAll(List<Integer> ids);

    void download(List<DailyPoemDiscussion> all, HttpServletResponse response) throws IOException;

    void togglePin(Integer id);

    void auditDiscussion(Integer id, Integer status);

    void like(Integer id);

}